SUBDIRLIST(APPDIRS ${CMAKE_CURRENT_SOURCE_DIR})
message("APPDIRS=${APPDIRS}")

if(BUILD_EXAMPLES)
FOREACH(app ${APPDIRS})
   ADD_SUBDIRECTORY(${app})
ENDFOREACH()
endif(BUILD_EXAMPLES)
